﻿namespace KinonekoSoftware.Foundation
{
    public class DialogContext : ContextBase, IDialogContext
    {
        public static readonly DialogContext Empty = new DialogContext();

        public const string Key_Option1ButtonText = "txt.option1";
        public const string Key_Option2ButtonText = "txt.option2";
        public const string Key_Description       = "desc";
        public const string Key_Title             = "title";
        public const string Key_Limit             = "limit";

        public DialogContext()
        {
            Parameter = new Dictionary<string, ImplicitArgument>();
        }

        public DialogCloseHandler CloseHandler { get; internal set; } // 关闭对话框处理器，在DialogViewModel中使用！
        public DialogExceptionHandler ExceptionHandler { get; internal set; }
    }
}